package com.shadow.baiqun.delegate.room.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shadow.baiqun.R;
import com.shadow.ui.recycler.MultipleItemEntity;

import java.util.List;

/**
 * @author zhangyu
 * @date 2018/7/13
 */

public class AddCheckTaskAdapter extends BaseQuickAdapter<MultipleItemEntity, BaseViewHolder> {
    public AddCheckTaskAdapter(int layoutResId, @Nullable List<MultipleItemEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MultipleItemEntity item) {
        helper.setText(R.id.tv_number,
                String.valueOf(item.getField(ItemName.ITEM_SERIALIZE_NUMBER)));
        helper.setText(R.id.tv_bord_code,
                (CharSequence) item.getField(ItemName.ITEM_BORAD_CODE));
        helper.addOnClickListener(R.id.btn_delete);
    }
}
